﻿<script type="text/javascript" src="~/Scripts/q.js"></script>
<script type="text/javascript" src="~/Scripts/breeze.min.js"></script>
<script type="text/javascript" src="~/Scripts/jquery.signalR-2.1.2.js"></script>
<script type="text/javascript" src="http://172.19.195.10:8780/signalr/hubs"></script>
<script type="text/javascript" src="~/Scripts/json2.js"></script>
<script type="text/javascript" src="~/Scripts/AppScripts/site/rootInfoLoader.js"></script>
@using FazaDemo.ViewModels;
@model LoginViewModel

@using (Html.BeginForm())
{
    <p>
        @Html.LabelFor(model => model.UserName, "Имя пользователя")
        @Html.EditorFor(model => model.UserName, "", "fieldName")
    </p>
    <p>
        @Html.LabelFor(model => model.SelectedRoleId, "Роль")
        @Html.DropDownListFor(model => model.SelectedRoleId, Model.Roles, new{ @id = "dropRole"})
    </p>
    <p>
        @Html.LabelFor(model => model.Password, "Пароль")
        @Html.PasswordFor(model => model.Password, new { @id = "fieldPassword" })
    </p>
    <p>
        <input id="buttonInput" type="button" value="Войти" />
    </p>
}